package com.rupertjones.globalcron.web.munin;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>&copy Rupert Jones 2012</p>
 *
 * @author rup
 */
public class MuninResults {
    private List<MuninResult> results = new ArrayList<MuninResult>();

    public void add(MuninResult value) {
        this.results.add(value);
    }

    public String output() {
        StringBuilder builder = new StringBuilder();
        for (MuninResult result : results) {
            builder.append(String.format("%s\n", result.output()));
        }
        return builder.toString();
    }
}
